package com.example.exceldemo.constants;

/**
 * 系统错误码常量
 *
 * @author system
 */
public class ErrorCode {

    /**
     * 成功
     */
    public static final String SUCCESS = "200";
    
    /**
     * 参数错误
     */
    public static final String PARAM_ERROR = "400";
    
    /**
     * 未授权
     */
    public static final String UNAUTHORIZED = "401";
    
    /**
     * 禁止访问
     */
    public static final String FORBIDDEN = "403";
    
    /**
     * 资源不存在
     */
    public static final String NOT_FOUND = "404";
    
    /**
     * 系统内部错误
     */
    public static final String SYSTEM_ERROR = "500";
    
    /**
     * 业务处理错误
     */
    public static final String BIZ_ERROR = "600";
    
    /**
     * 文件上传错误
     */
    public static final String FILE_UPLOAD_ERROR = "601";
    
    /**
     * 文件下载错误
     */
    public static final String FILE_DOWNLOAD_ERROR = "602";
    
    /**
     * 文件解析错误
     */
    public static final String FILE_PARSE_ERROR = "603";
    
    /**
     * 文档生成错误
     */
    public static final String DOC_GENERATE_ERROR = "604";
    
    /**
     * 配置错误
     */
    public static final String CONFIG_ERROR = "605";
    
    /**
     * 私有构造方法，防止实例化
     */
    private ErrorCode() {
        throw new IllegalStateException("常量类不能实例化");
    }
} 